﻿using System.Collections.Generic;

namespace ProgressTracker.Data.Entities
{
    public class User
    {
        protected internal virtual ICollection<Day> Days { get; set; }
        protected internal virtual ICollection<Task> Tasks { get; set; }

        public virtual int Id { get; set; }
        public virtual string Email { get; set; }
        public virtual string PasswordHash { get; set; }
        public virtual bool MustChangePassword { get; set; }

        public virtual IEnumerable<Day> DaysForUser { get { return Days; } }
        public virtual IEnumerable<Task> TasksForUser { get { return Tasks; } }

        public User()
        {
            Days = new List<Day>();
            Tasks = new List<Task>();
        }
    }
}
